<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ChompBombs:  Fichier source de /home/etu/c/p1006411/chompbombs/src/mario.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ChompBombs</div>
   <div id="projectbrief">Jeu_de_Bomberman</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/etu/c/p1006411/chompbombs/src/mario.h</h1>  </div>
</div>
<div class="contents">
<a href="mario_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef __MARIO__H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define __MARIO__H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="terrain_8h.html" title="module de gestion du terrain">terrain.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="bombe_8h.html" title="module de gestion des bombes">bombe.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 
<a name="l00018"></a><a class="code" href="structmario.html">00018</a> <span class="keyword">struct </span><a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>
<a name="l00019"></a>00019 {
<a name="l00020"></a><a class="code" href="structmario.html#a471a0794b59db313cc8cdf34f9e3c0ae">00020</a>     <span class="keywordtype">int</span> <a class="code" href="structmario.html#a471a0794b59db313cc8cdf34f9e3c0ae">x</a>;
<a name="l00021"></a><a class="code" href="structmario.html#a647e8bd98a553afb27392a11b93e8d43">00021</a>     <span class="keywordtype">int</span> <a class="code" href="structmario.html#a647e8bd98a553afb27392a11b93e8d43">y</a>;
<a name="l00022"></a><a class="code" href="structmario.html#a6ae6cdc75d413e8b9a8619de12ff8848">00022</a>     <span class="keywordtype">int</span> <a class="code" href="structmario.html#a6ae6cdc75d413e8b9a8619de12ff8848">tabBonus</a>[5];
<a name="l00023"></a><a class="code" href="structmario.html#abad2ab21a80b0f851e05e8171983af3b">00023</a>     time_t <a class="code" href="structmario.html#abad2ab21a80b0f851e05e8171983af3b">heureInvincibilite</a>;
<a name="l00024"></a>00024     <span class="comment">/*</span>
<a name="l00025"></a>00025 <span class="comment">    tabBonus est un tableau de taille fixe.</span>
<a name="l00026"></a>00026 <span class="comment">    tabBonus[0] = nombre de points de vie</span>
<a name="l00027"></a>00027 <span class="comment">    tabBonus[1] = nombre de bombes</span>
<a name="l00028"></a>00028 <span class="comment">    tabBonus[2] = vitesse de Mario</span>
<a name="l00029"></a>00029 <span class="comment">    tabBonus[3] = puissance des bombes</span>
<a name="l00030"></a>00030 <span class="comment">    tabBonus[4] = invincibilité</span>
<a name="l00031"></a>00031 <span class="comment">    */</span>
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="mario_8h.html#a70efddd094c6292cd266ccc8cc854cd9">00033</a> }; <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a> <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>;
<a name="l00034"></a>00034 
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#a0e62d28b7b40a47548263865a640d0f1" title="initialise un mario">marioInit</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmario.html#a471a0794b59db313cc8cdf34f9e3c0ae">x</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmario.html#a647e8bd98a553afb27392a11b93e8d43">y</a>);
<a name="l00043"></a>00043 
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#a10d732a413f1a030e68cc71388817787" title="déplace Mario vers la gauche">marioGauche</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter);
<a name="l00051"></a>00051 
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#aba0463192b0877516242ee52f517ee6d" title="déplace Mario vers la droite">marioDroite</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter);
<a name="l00059"></a>00059 
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#ab1afc0af5deb149fa63739cb59b5c071" title="déplace Mario vers le haut">marioHaut</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter);
<a name="l00067"></a>00067 
<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#a644dfde5d6005bdbcad2b0886ca13af2" title="déplace Mario vers le bas">marioBas</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter);
<a name="l00075"></a>00075 
<a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#a1f23eb7284ba6ba8dfa0de75562feb16" title="pose une bombe aux coordonnées de mario">poseBombe</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter, <span class="keyword">const</span> <span class="keywordtype">int</span> numJoueur);
<a name="l00083"></a>00083 
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="mario_8c.html#a3a70caa8122c2c15a42a4a17f6c06cb0" title="récupere la coordonnée x de mario">marioGetX</a>(<span class="keyword">const</span> <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>);
<a name="l00090"></a>00090 
<a name="l00096"></a>00096 <span class="keywordtype">int</span> <a class="code" href="mario_8c.html#a0001983c552f1ed74ebc0c6b81eb3de0" title="récupere la coordonnée y de mario">marioGetY</a>(<span class="keyword">const</span> <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>);
<a name="l00097"></a>00097 
<a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#a1957929378ecab2f31db6cf22d797f34" title="ajoute un bonus à mario">marioSetBonus</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> codeBonus);
<a name="l00105"></a>00105 
<a name="l00111"></a>00111 <span class="keywordtype">void</span> <a class="code" href="mario_8c.html#afddf7a92418d4b225cfcc3c9d61325f4" title="Supprime un mario.">marioLibere</a>(<a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>* <a class="code" href="structmario.html" title="contient les coordonnées, ainsi qu&amp;#39;un tableau de bonus de Mario">mario</a>);
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jun 7 2012 15:48:57 pour ChompBombs par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
